<template>
	<!-- 
	swiper中的transfrom会使fixed失效,此时用height固定高度; 
	swiper中无法触发mescroll-mixins.js的onPageScroll和onReachBottom方法,只能用mescroll-uni,不能用mescroll-body
	-->
	<!-- ref动态生成: 字节跳动小程序编辑器不支持一个页面存在相同的ref (如不考虑字节跳动小程序可固定值为 ref="mescrollRef") -->
	<!-- top的高度等于悬浮菜单tabs的高度 -->
	<mescroll-uni :ref="'mescrollRef' + i" @init="mescrollInit" :height="height" :down="downOption" @down="downCallback" :up="upOption" @up="upCallback" @emptyclick="emptyClick">
		<!-- 数据列表 -->
		<!-- <u-gap height="20" bg-color="#ffffff"></u-gap> -->
		<view class="uni-block-list content_view">
			<view class="content_item" v-for="(order, index) in goods" :key="index">
				<view class="item_time" v-if="receive == 1">
					<view class="time">中奖时间：{{ order.create_time }}</view>
					<view class="txt" v-if="receive == 1 && order.type == 4">{{ order.logistics | getstatus }}</view>
				</view>
				<view class="item_time" v-else>
					<view class="time">兑换时间：{{ order.update_time }}</view>
					<view class="txt">兑换成功</view>
				</view>
				<view class="item_img"><vimage v-if="order.prize.value" :src="order.prize.value.image"></vimage></view>
				<view class="item_content">
					<view class="u-flex-1">
						<view class="item_title u-line-2">{{ order.info }}</view>
						<view class="item_ltitle">获得:{{ order.info }}{{ typeText(order.type) }}</view>
					</view>
					<view v-if="receive == 2" class="item_btn" @click="details(order.id)"><text>领取奖品</text></view>
					<view v-if="receive == 1 && order.type == 4" class="item_btn1" @click="details(order.id)"><text>查看详情</text></view>
				</view>
			</view>
		</view>
		<uni-login ref="Login" @callback="logincallback"></uni-login>
		<u-popup v-model="show" mode="center">
			<view class="popup-view" v-if="show">
				<view class="view-conetnet">
					<view class="adress_div">
						<view class="tabs">
							<view v-if="sendtype != 'self'" @click="changetabs(0)" :class="[tabIndex == 0 ? 'active' : '']"><text>快递</text></view>
							<view v-if="sendtype != 'send'" :class="[tabIndex == 1 ? 'active' : '']" @click="changetabs(1)"><text>自提</text></view>
						</view>

						<view class="adresslist">
							<swiper :current="tabIndex" @change="changeTab" class="uni-swiper">
								<swiper-item v-if="sendtype != 'self'">
									<view class="address_info uni-flex-row uni-flex-title" @click="getAddress(address)">
										<view class="u-flex">
											<view class="icon_div"><text class="el-sc-dingwei iconfont"></text></view>
											<view class="uni-flex-column" v-if="address">
												<view class="add_name">
													<text>{{ address.consignee }}</text>
													<text>{{ address.iphone }}</text>
												</view>
												<text class="add_content">{{ address.address.replace(/,/g, '') }}</text>
											</view>
											<view class="use" v-else><text>选择地址</text></view>
										</view>

										<text class="el-sc-xiangyou iconfont"></text>
									</view>
								</swiper-item>
								<swiper-item v-if="sendtype != 'send'">
									<view class="address_info uni-flex-row uni-flex-title" @click="selectstore()">
										<view class="u-flex">
											<view class="icon_div"><text class="el-sc-dingwei iconfont"></text></view>
											<view class="uni-flex-column">
												<text class="add_name">{{ selectstoredata.name }}</text>
												<text>{{ selectstoredata.district.replace(/ /g, '') }}{{ selectstoredata.address }}</text>
											</view>
										</view>

										<text class="el-sc-xiangyou iconfont"></text>
									</view>
								</swiper-item>
							</swiper>
						</view>
					</view>
					<view class="goods_list">
						<view class="goods_div">
							<view class="uni-flex-row">
								<vimage class="img_box" :src="orderdetail.prize.commodity.master"></vimage>
								<view class="goods_content uni-flex-column">
									<text class="u-main-color u-line-2">{{ orderdetail.prize.commodity.name }}</text>
									<text class="u-tips-color">{{ orderdetail.pvs_value || '' }}</text>
									<text>数量:{{ orderdetail.number }}</text>
								</view>
							</view>
						</view>
					</view>
					<u-form style="margin-bottom: 20rpx;" :label-width="180" :model="form" ref="uForm">
						<u-form-item class="item" label="姓名" prop="consignee" :required="true"><u-input placeholder="请输入收货人姓名" v-model="form.consignee" /></u-form-item>
						<u-form-item class="item" label="手机号码" prop="iphone"><u-input placeholder="请输入收货人手机号码" v-model="form.iphone" /></u-form-item>
						<!-- <u-form-item class="item" label="地址" prop="address">
							<u-input placeholder="请输入收货地址" v-model="form.address" />
						</u-form-item> -->
					</u-form>
					<u-button :ripple="true" @click="submit" :custom-style="customStyle">提交</u-button>
				</view>
			</view>
		</u-popup>
		<u-popup v-model="show_details" mode="center" z-index="10">
			<view class="popup-view" v-if="show_details">
				<view class="view-conetnet">
					<view class="goods_list">
						<text class="title">奖品详情</text>
						<view class="goods_div">
							<view class="uni-flex-row">
								<vimage class="img_box" :src="orderdetail.prize.value.image"></vimage>
								<view class="goods_content uni-flex-column">
									<text class="u-main-color u-line-2">{{ orderdetail.prize.value.name }}</text>
									<text class="u-tips-color">{{ orderdetail.pvs_value || '' }}</text>
									<text>数量:{{ orderdetail.number }}</text>
								</view>

								<view class="goods_price uni-flex-column" v-if="orderdetail.type == 4">
									<view class="">
										<text style="color:#ff3c29">{{ orderdetail.Logistics | getstatus }}</text>
									</view>
									<view class="goods_btns" v-if="orderdetail.Logistics.type == 1 && orderdetail.Logistics.status > 1">
										<view class="btns" @click="gologistics(orderdetail)">查看物流</view>
									</view>
								</view>
							</view>
						</view>
						<view class="goods_div">
							<text class="title">奖品信息</text>
							<view class="uni-flex-row uni-flex-title order_cell">
								<text>奖品编号</text>
								<view style="display: flex;align-items: center;">
									<view style="width: 320rpx; overflow: hidden; text-overflow: ellipsis">{{ orderdetail.prize.uniqid }}</view>
									<text class="mid-font fuzhi" @click="uniCopy(orderdetail.prize.uniqid)">复制</text>
								</view>
							</view>
							<view class="uni-flex-row uni-flex-title order_cell">
								<text>领取时间</text>
								<text>{{ orderdetail.update_time }}</text>
							</view>
						</view>
						<view class="goods_div" v-if="orderdetail.type == 4 && orderdetail.Logistics.type == 2">
							<view class="div_img">
								<vimage v-if="codelist" class="img_box_1" mode="widthFix" :src="codelist" imgtype='1'></vimage>
								<u-loading v-else class="div_loading" color="red" mode="circle"></u-loading>
							</view>
							<view class="title" style="text-align: center; color: #999999;margin-top: 20rpx;">扫描二维码，核销商品</view>
							<view class="div-btn" @click="preservation(codelist)">保存图片</view>
						</view>
						<u-button v-if="orderdetail.Logistics.type == 1 && orderdetail.Logistics.status == 2" :ripple="true" @click="receiving" :custom-style="customStyle">
							确认收货
						</u-button>
					</view>
				</view>
			</view>
		</u-popup>
	</mescroll-uni>
</template>

<script>
import MescrollMixin from '@/uni_modules/mescroll-uni/components/mescroll-uni/mescroll-mixins.js';
import MescrollMoreItemMixin from '@/uni_modules/mescroll-uni/components/mescroll-uni/mixins/mescroll-more-item.js';
// import {apiGoods} from "@/api/mock.js"
import util from '@/common/util.js';
import http from '@/common/http.js';

import {mapState, mapMutations} from 'vuex';
export default {
	mixins: [MescrollMixin, MescrollMoreItemMixin], // 注意此处还需使用MescrollMoreItemMixin (必须写在MescrollMixin后面)
	data() {
		return {
			receive: 1,
			downOption: {
				auto: false // 不自动加载 (mixin已处理第一个tab触发downCallback)
			},
			upOption: {
				auto: false, // 不自动加载
				page: {
					num: 0, // 当前页码,默认0,回调之前会加1,即callback(page)会从1开始
					size: 10 // 每页数据的数量
				},
				noMoreSize: 10, //如果列表已无数据,可设置列表的总数量要大于半页才显示无更多数据;避免列表数据过少(比如只有一条数据),显示无更多数据会不好看; 默认5
				empty: {
					tip: '暂无数据', // 提示
					btnText: '',
					icon: util.getimgurl('static/images/mescroll-empty.png', '1')
				}
			},
			goods: [], //列表数据
			hasShow: 'none',
			page: 1,
			size: 10,
			showCommon: false,
			show: false,
			show_details: false,
			prize_details: [],
			// 地址
			sendtype: '',
			tabIndex: 0,
			// address: null,
			form: {
				consignee: '',
				iphone: '',
				address: ''
			},
			rules: {
				consignee: [
					{
						required: true,
						message: '请输入收获人姓名',
						trigger: ['blur', 'change']
					}
				],
				iphone: [
					{
						required: true,
						message: '请输入收货人手机号码',
						trigger: 'blur'
					},
					{
						pattern: /^1[3456789]\d{9}$/,
						message: '手机号码格式不正确',
						trigger: 'blur'
					}
				],
				address: [
					{
						required: true,
						message: '请输入收获地址',
						trigger: ['change', 'blur']
					}
				]
			},

			storelist: {},
			codelist: '',
			orderdetail: {},
			customStyle: {
				border: '1rpx solid #333'
			}
		};
	},
	props: {
		i: Number, // 每个tab页的专属下标 (除了支付宝小程序必须在这里定义, 其他平台都可不用写, 因为已在MescrollMoreItemMixin定义)
		index: {
			// 当前tab的下标 (除了支付宝小程序必须在这里定义, 其他平台都可不用写, 因为已在MescrollMoreItemMixin定义)
			type: Number,
			default() {
				return 0;
			}
		},
		store_id: {
			type: Number,
			default() {
				return 0;
			}
		},
		tabs: {
			// 为了请求数据,演示用,可根据自己的项目判断是否要传
			type: Array,
			default() {
				return [];
			}
		},
		address: {
			type: Object,
			default() {
				return {};
			}
		},
		selectstoredata: {
			type: Object,
			default() {
				return {
					name: '请选择门店',
					address: '',
					district: ''
				};
			}
		},
		height: [Number, String] // mescroll的高度
	},
	filters: {
		getstatus(data) {
			if (data) {
				switch (data.status) {
					case 0:
						return '未付款';
						break;
					case 1:
						if (data.type == 1) {
							return '待发货';
						} else {
							return '待核销';
						}
						break;
					case 2:
						if (data.type == 1) {
							return '待收货';
						} else {
							return '待核销';
						}
						break;
					case 3:
						if (data.type == 1) {
							return '已收货';
						} else {
							return '已核销';
						}
						break;
					case 4:
						return '已关闭';
						break;
				}
			} else {
				return '';
			}
		}
	},
	watch: {
		address: function() {
			this.form = {
				...this.address
			};
			this.form.address = this.form.address.replace(/,/g, '');
		}
	},
	computed: {
		...mapState({
			commoditys: state => state.commoditys
		}),
		typeText(type) {
			return function(type) {
				switch (type) {
					case 2:
						return '积分';
						break;
					case 3:
						return '余额';
						break;
					case 5:
						return '优惠劵';
						break;
				}
			};
		}
	},
	methods: {
		gotrolley(item) {
			let data = {
				show: true,
				id: item.id,
				type: 2 //积分商品
			};
			this.$store.commit('settrolley', data);
		},
		/*下拉刷新的回调 */
		downCallback() {
			// 这里加载你想下拉刷新的数据, 比如刷新轮播数据
			// loadSwiper();
			// 下拉刷新的回调,默认重置上拉加载列表为第一页 (自动执行 page.num=1, 再触发upCallback方法 )
			this.mescroll.resetUpScroll();
		},
		/*上拉加载的回调: 其中page.num:当前页 从1开始, page.size:每页数据条数,默认10 */
		upCallback(page) {
			//联网加载数据
			let keyword = this.tabs[this.i].name;
			this.getList(page);

			// apiGoods(page.num, page.size, keyword).then(res=>{
			// 	//联网成功的回调,隐藏下拉刷新和上拉加载的状态;
			// 	this.mescroll.endSuccess(res.list.length);
			// 	//设置列表数据
			// 	if(page.num == 1) this.goods = []; //如果是第一页需手动制空列表
			// 	this.goods=this.goods.concat(res.list); //追加新数据
			// }).catch(()=>{
			// 	//联网失败, 结束加载
			// 	this.mescroll.endErr();
			// })
		},
		//点击空布局按钮的回调
		emptyClick() {
			uni.showToast({
				title: '点击了按钮,具体逻辑自行实现'
			});
		},
		getList(page) {
			let data = this.tabs[this.i];
			// let data = {
			// 	page: this.list[index].page,
			// 	size: this.size,
			// 	receive: this.list[index].receive
			// };
			const param = {
				page: page.num,
				size: page.size,
				receive: data.receive
			};
			this.receive = data.receive;
			http('/lottery/log/list', param, 'post').then(
				res => {
					// let list = res.data.msg.data;
					const json = res.data.msg;
					this.mescroll.endSuccess(json.data.length);
					let list = json.data;
					list.forEach(item => {
						if (item.type == 4) {
							item.prize.commodity = JSON.parse(item.prize.commodity);
						}
						item.prize.value = JSON.parse(item.prize.value);
						item.prize.other = JSON.parse(item.prize.other);
						// this.list[index].lister.push(item);
					});

					//设置列表数据
					if (page.num == 1) this.goods = []; //如果是第一页需手动制空列表
					this.goods = this.goods.concat(list); //追加新数据
				},
				e => {
					uni.showModal({
						title: '提示',
						content: e,
						showCancel: false
					});
					this.mescroll.endErr();
				}
			);
		},
		// 查看详情 && 领取奖品
		details(id) {
			if (id) {
				http('/lottery/log/' + id, 'get').then(res => {
					let data = res.data.msg;
					data.prize.commodity = JSON.parse(data.prize.commodity);
					data.prize.value = JSON.parse(data.prize.value);
					this.orderdetail = data;
					if (data.receive == 2) {
						this.address = null;
						this.form = {};
						this.id = data.id;
						this.merchant_id = data.prize.value.valuelist[0].merchant_id;
						this.show = true;
						this.$nextTick(function() {
							this.$refs.uForm.setRules(this.rules);
						});
					} else {
						this.codelist = '';
						if (data.Logistics.type == 2) {
							this.postForm();
						}

						this.show_details = true;
					}
				});
			}
		},
		// 地址
		changetabs(tabid) {
			if (this.sendtype == 'self') return;
			this.tabIndex = tabid;
			this.form = {};
		},
		changeTab(e) {
			let index = e.detail.current;
			this.tabIndex = index;
		},
		//选择门店
		selectstore() {
			if (this.storelist[this.merchant_id] && this.storelist[this.merchant_id].length > 0) {
				this.Jumpurl({
					link: '/pages/mine/storelist/storelist?id=' + this.merchant_id,
					type: 1
				});
			} else {
				let data = {
					merchant_id: this.merchant_id
				};
				http('/merchant/store/list?page=1&size=100', data, 'POST').then(res => {
					if (res.statusCode == 200) {
						let list = res.data.msg.data;
						if (list.length > 0) {
							this.storelist[this.merchant_id] = list;
							uni.setStorageSync('storelist', JSON.stringify(this.storelist));
							this.Jumpurl({
								link: '/pages/mine/storelist/storelist?id=' + this.merchant_id,
								type: 1
							});
						}
					}
				});
			}
		},
		// 门店选择返回
		Editcart(item, id) {
			this.store_id = item.id;
		},
		getAddress() {
			this.Jumpurl({
				link: '/pages/mine/address/index?addressId=' + 0,
				type: 1
			});
		},
		// 提交
		submit() {
			this.$refs.uForm.validate(valid => {
				if (valid) {
					let data = {
						name: this.form.consignee,
						type: this.tabIndex + 1,
						mobile: this.form.iphone
						// address: this.form.address
					};
					if (data.type == 2) {
						data.store_id = this.store_id;
					} else {
						data.address = this.form.address;
					}
					http('/lottery/user/receive/' + this.id, data, 'post').then(res => {
						this.show = false;
						this.downCallback();
						uni.showToast({
							title: '领取成功',
							icon: 'none',
							duration: 2000
						});
					});
				} else {
					console.log('验证失败');
				}
			});
		},

		//快递
		gologistics(item) {
			uni.navigateTo({
				url: '/orderpage/order/logistics?id=' + item.id + '&address=' + item.Logistics.address
			});
		},
		// 复制
		uniCopy(text) {
			util.uniCopy({
				content: text,
				success: res => {
					uni.showToast({
						title: res,
						icon: 'none'
					});
				},
				error: e => {
					uni.showToast({
						title: e,
						icon: 'none',
						duration: 3000
					});
				}
			});
		},
		// 获取核销二维码
		postForm() {
			http('/lottery/user/qrcode/' + this.orderdetail.id, {}, 'post').then(res => {
				this.codelist =  res.data.msg;
			});
		},
		preservation(path) {
			util.toSaveImage(path);
		},
		receiving() {
			var _this = this;
			uni.showModal({
				title: '是否确认收货',
				success(res) {
					if (res.confirm) {
						_this.$http('/lottery/user/receiving/' + _this.orderdetail.id, {}, 'POST').then(res => {
							uni.showToast({
								title: '收货成功',
								icon: 'none',
								duration: 2000
							});
							_this.show_details = false;
							_this.downCallback();
						});
					}
				}
			});
		},
		logincallback() {
			if (e.islogin) {
				this.mescroll.resetUpScroll();
			}
		}
	}
};
</script>
<style lang="scss">
.content_view {
	padding: 0 20rpx;
	width: 100%;
	height: 100%;
	display: block;

	.content_item {
		background: #fff;
		border-bottom: #e8e8e8 solid 1px;
		padding: 30rpx;
		display: flex;
		flex-wrap: wrap;
		flex-grow: 1;
		border-radius: 15rpx;
		margin-top: 20rpx;

		.item_time {
			flex-basis: 100%;
			display: flex;
			justify-content: space-between;
			padding: 0 0 20rpx 0;
			align-items: center;

			.time {
				color: #999999;
				font-size: 24rpx;
			}

			.txt {
				color: #ffc000;
			}
		}

		.item_img {
			width: 130rpx;
			height: 130rpx;
			border-radius: 10rpx;
			overflow: hidden;

			image {
				width: 100%;
				height: 100%;
			}
		}

		.item_content {
			flex: 1;
			padding-left: 20rpx;
			font-size: 26rpx;
			color: #333333;
			display: flex;
			position: relative;
			.item_ltitle {
				font-size: 24rpx;
				color: #d2d2d2;
				margin-top: 5rpx;
			}
			.u-line-2 {
				height: 80rpx;
			}
			.item_btn {
				position: absolute;
				bottom: 30rpx;
				right: 0;
				// display: flex;
				// // justify-content: flex-end;
				// height: 60rpx;
				text {
					padding: 10rpx 20rpx;
					font-size: 24rpx;
					color: #fff;
					background: #ffc000;
					border-radius: 30rpx;
					box-shadow: 0 6rpx 16rpx #ffc000;
				}
			}

			.item_btn1 {
				position: absolute;
				bottom: 30rpx;
				right: 0;

				text {
					box-sizing: border-box;
					padding: 10rpx 20rpx;
					font-size: 24rpx;
					color: #333;
					border: #333 solid 1rpx;
					border-radius: 30rpx;
				}
			}
		}
	}

	.load_view {
		padding: 20rpx 0rpx;
	}
}
.popup-view {
	width: 85vw;
	background: #fff;
	padding: 40rpx;
	border-radius: 10rpx;

	.view_title {
		margin-bottom: 20rpx;
	}

	.adress_div {
		width: 100%;
		background-color: #fff;
		position: relative;
		z-index: 2;
		border-radius: 12rpx;
		border-bottom: #f5f5f5 solid 1rpx;

		.addressline {
			width: 100%;
		}

		.item {
			padding: 15rpx 0rpx;
			margin: 0 20rpx;

			.label {
				width: 120rpx;
				font-size: 30rpx;
			}

			input {
				font-size: 24rpx;
				margin-left: 20rpx;
			}
		}

		.tabs {
			display: flex;
			align-items: center;
			border-bottom: 1rpx solid #f5f5f5;
			width: 100%;
			height: 88rpx;
			background: #ffffff;

			.active {
				color: #e5582b;

				text {
					border-bottom: 4rpx solid #e5582b;
				}
			}

			view {
				flex: 1;
				text-align: center;
				font-size: 30rpx;
				font-weight: 500;

				text {
					padding: 0 65rpx;
					line-height: 80rpx;
					display: inline-block;
					border-bottom: 4rpx solid #ffffff;
				}
			}
		}

		.adresslist {
			width: 100%;
			margin: 0 auto;
			height: 150rpx;
			margin-top: 20rpx;

			.uni-swiper {
				height: 150rpx;
				border-radius: 16rpx;
				position: relative;
				background: #ffffff;
			}
		}

		.address_info {
			font-size: 30rpx;
			color: #969696;
			height: 150rpx;
			background: #ffffff;
			border-radius: 16rpx;

			.add_name {
				margin-bottom: 20rpx;

				text:first-child {
					font-size: 30rpx;
					font-weight: bold;
					color: #333333;
					margin-right: 18rpx;
				}
			}

			.el-sc-dingwei {
				// margin-right: 20rpx;
				font-size: 34rpx;
				color: #333333;
				margin-right: 10rpx;
			}

			.icon_div {
				width: 66rpx;
				height: 66rpx;
				background: linear-gradient(-90deg, #e4552a, #f0943f);
				border-radius: 50%;
				display: flex;
				align-items: center;
				justify-content: center;
				margin-right: 27rpx;

				.el-sc-dingwei {
					// margin-right: 20rpx;
					font-size: 34rpx;
					color: #ffffff;
					margin: auto;
				}
			}
		}

		.line {
			width: 100%;
			height: 1rpx !important;
			background-color: #f5f5f5;
		}
	}
}

.goods_list {
	width: 100%;
	background-color: #fff;
	border-radius: 16rpx;

	.title {
		font-size: 30rpx;
		font-weight: bold;
		color: #333333;
	}

	.goods_div {
		position: relative;
		z-index: 2;
		padding: 30rpx 0;
		font-size: 30rpx;
		border-bottom: 1rpx solid #f5f5f5;

		/deep/.img_box {
			width: 140rpx;
			height: 140rpx;
			border-radius: 10rpx;
		}

		.div_img {
			width: 360rpx;
			height: 360rpx;
			text-align: center;
			position: relative;
			left: calc(50% - 180rpx);
			right: 0;

			.div_loading {
				position: absolute;
				z-index: 999;
				left: 47%;
				top: 47%;
			}

			.img_box {
				width: 360rpx;
				height: 360rpx;
				margin: auto;
			}
		}

		.div-btn {
			width: 50%;
			line-height: 80rpx;
			text-align: center;
			background: radial-gradient(circle farthest-side at top left, #fe8e0a 0, #ff5011 100%);
			box-shadow: -2px 5px 9px 0px rgba(254, 140, 10, 0.5);
			border-radius: 50rpx;
			margin: auto;
			font-size: 28rpx;
			margin-top: 30rpx;
			color: #fff;
		}

		.goods_content {
			width: 280rpx;
			height: 140rpx;
			justify-content: space-between;
			margin-left: 20rpx;

			text:first-child {
				font-size: 26rpx;
				color: #333333;
			}

			text:nth-child(2) {
				font-size: 20rpx;
			}

			text:last-child {
				font-size: 26rpx;
				color: #999999;
				font-weight: bold;
			}
		}

		.goods_price {
			flex: 1;
			align-items: flex-end;
			// justify-content: space-between;
			height: 140rpx;

			text:first-child {
				font-size: 26rpx;
				font-weight: bold;
				color: #333333;
			}

			text:nth-child(2) {
				font-size: 24rpx;
				font-weight: 500;
				color: #e4572b;
				margin-top: 10rpx;
			}

			.btns {
				background: #ffffff;
				border: 1rpx solid #e4572b;
				border-radius: 25rpx;
				font-size: 24rpx;
				font-weight: 500;
				color: #e4572b;
				padding: 6rpx 12rpx;
				text-align: center;
				margin-left: 15rpx;
			}
		}

		.goods_btns {
			position: absolute;
			right: 0;
			display: flex;
			width: 100%;
			bottom: 30rpx;
			justify-content: flex-end;
		}
	}
}

.order_cell {
	padding: 15rpx 0;
	color: #999999;
	font-size: 24rpx;

	&.boldtext {
		color: #333333;
		font-weight: bold;
	}

	.fuzhi {
		text-decoration: underline;
		margin-left: 15rpx;
		color: #ff3c29;
	}
}

.u-line-2 {
	// height: 80rpx;
	line-height: 1.2;
}

.footer {
	width: 85%;
	line-height: 80rpx;
	text-align: center;
	background: radial-gradient(circle farthest-side at top left, #fe8e0a 0, #ff5011 100%);
	border-radius: 50rpx;
	margin: auto;
	font-size: 28rpx;

	.footer-text {
		font-size: 28rpx;
		color: #fff;
	}
}

/deep/.img_box {
	width: 100%;
	border-radius: 10rpx;
}
</style>
